package com.gxa.p2p.mapper;

import com.gxa.p2p.pojo.CertificateMaterial;
import com.gxa.p2p.pojo.VerifiedInfo;

import java.util.List;
import java.util.Map;

public interface CertificateMaterialMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(CertificateMaterial record);

    int insertSelective(CertificateMaterial record);

    CertificateMaterial selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CertificateMaterial record);

    int updateByPrimaryKey(CertificateMaterial record);

    /**
     * 带条件分页查询接口
     * @param map
     * @return List
     */
    List<CertificateMaterial> findAll(Map<String,Object> map);

    /**
     * 计算带条件的数据总数
     * @param map
     * @return Integer
     */
    Integer dataSum(Map<String,Object> map);

    /**
     * 添加(改)审核信息
     * @param certificateMaterial
     * @return Integer
     */
    Integer updateReviewStatus(CertificateMaterial certificateMaterial);

    /**
     * 风控审核查询
     * @param userId
     * @return
     */
    CertificateMaterial findByCM(Integer userId);
}